﻿<div ng-controller="playingController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li>查看参与队伍</li>
            </ol>
        </div>
    </div>

    <table style="table-layout:fixed;" class="table table-hover m-t-md">
        <thead>
            <tr style="background-color: #f7f7f9;">
                <th>序号</th>
                <th>参赛队伍（主队/客队）</th>
                <th>参与次数（主队胜/平局/客队胜）</th>
                <th>总参与红钻数</th>
                <th>获胜队伍</th>
                <th>获胜参与次数</th>
                <th>每次获得红钻数</th>
                <th width="130">操作</th>
            </tr>
        </thead>
        <tbody ng-repeat="item in model.rows">
            <tr>
                <td>{{$index+1}}</td>
                <td>{{item.home_team_title}} / {{item.guest_team_title}}</td>
                <td>{{item.participate_home_num}} / {{item.participate_dogfall_num}} / {{item.participate_guest_num}}</td>
                <td>{{item.total_participate_reddrill}}</td>
                <td>{{item.win_team_title}}</td>
                <td>{{item.win_participate_num}}</td>
                <td>{{item.win_reddrill_per}}</td>

                <td>
                    <a class="btn btn-primary btn-xs" ui-sref="app.playingStatistics.userGuessPlayingHis({playingId:{{item.playing_id}}})"><i class="fa fa-cog"></i>查看参与用户</a>
                </td>
            </tr>
        </tbody>
    </table>
    <div class="row">
        <div class="col-md-12">
            <uib-pagination total-items="model.total_result" items-per-page="model.size" ng-model="model.page" num-pages="model.total_pages"
                            ng-change="playingStatistics_page(model.page)" class="pagination-sm" boundary-links="true" boundary-link-numbers="true" max-size="20"
                            previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
            <span class="pull-right" style="margin: 30px 0px 20px 0px">共{{model.total_result}} 当前：{{model.page}}/{{model.total_pages}}</span>
        </div>
    </div>
</div>
